package com.cafuc.jdk8;

import com.cafuc.entity.User;

import java.util.function.Consumer;
import java.util.function.Function;

public class LambdaOperation {
    public void lambdaTest(){
        Thread thread1 = new Thread(() -> {
           System.out.println(("==== start thread ===="));
        });
        Runnable runnable = () ->  System.out.println(("==== start thread ===="));

        final Consumer<User> call = User :: getName;
        Runnable display = User ::display;
        Runnable runnable1 = System.out :: println;
    }
}
